<layout name="master" />
<div class="breadcrumbs">
    <div class="container">
        <a href="http://www.cy816.cn/xm">首页</a><span class="sep">&gt;</span><span>所有商品</span>
        <foreach name="fatherData" item="v" key="k">
            <span class="sep">&gt;</span><span>{$v['cname']}</span>
        </foreach>
    </div>
</div>
<div class="container">
    <div class="filter-box">
        <style>
            .filter-list a.active{
                color: #ff6700;
            }
        </style>
        <foreach name="finalTemp" key="k" item="v">
        <div class="filter-list-wrap">
            <dl class="filter-list clearfix filter-list-row-4">
                <dt>{$v['name']}：</dt>
                <?php $temp = $param; $temp[$k] = 0; ?>
                <dd ><a <if condition="$param[$k] == 0">class="active"</if> href="{:u('home/list/index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}" >全部</a></dd>
                <foreach name="v['value']" key="kk" item="vv">
                    <?php $temp[$k] = $vv['gaid'] ?>
                <dd ><a <if condition="$param[$k] == $vv['gaid']">class="active"</if> href="{:u('home/list/index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}">{$vv['gattr']}</a></dd>
                </foreach>
            </dl>
        </div>
        </foreach>

    </div>
</div>
<div class="content">
    <div class="container">
        <!--<div class="order-list-box clearfix">
            <ul class="order-list">
                <li class="active first">
                    <a href="//list.mi.com/0-0-0-0-0-0-0-0-1" rel="nofollow" data-stat-id="47fd0646f2a8b090" onclick="_msq.push(['trackEvent', '1804ccef8d6df799-47fd0646f2a8b090', '//list.mi.com/0-0-0-0-0-0-0-0-1', 'pcpid', '']);">推荐</a>
                </li>
                <li>
                    <a href="//list.mi.com/0-0-0-0-1-0-0-0-1" rel="nofollow" data-stat-id="523a780b06847364" onclick="_msq.push(['trackEvent', '1804ccef8d6df799-523a780b06847364', '//list.mi.com/0-0-0-0-1-0-0-0-1', 'pcpid', '']);">新品</a>
                </li>
                <li class="up">
                    <a href="//list.mi.com/0-0-0-0-10-0-0-0-1" rel="nofollow" data-stat-id="b620e59b1ebad237" onclick="_msq.push(['trackEvent', '1804ccef8d6df799-b620e59b1ebad237', '//list.mi.com/0-0-0-0-10-0-0-0-1', 'pcpid', '']);">价格 <i class="iconfont"></i></a>
                </li>
                <li>
                    <a href="//list.mi.com/0-0-0-0-3-0-0-0-1" rel="nofollow" data-stat-id="2520a5a9d9942f9c" onclick="_msq.push(['trackEvent', '1804ccef8d6df799-2520a5a9d9942f9c', '//list.mi.com/0-0-0-0-3-0-0-0-1', 'pcpid', '']);">评论最多</a>
                </li>
            </ul>
            <ul class="type-list">
                <li>
                    <a href="//list.mi.com/0-0-0-0-0-0-0-1-1" data-stat-id="32f5517536990bd7" onclick="_msq.push(['trackEvent', '1804ccef8d6df799-32f5517536990bd7', '//list.mi.com/0-0-0-0-0-0-0-1-1', 'pcpid', '']);"><span class="checkbox"><i class="iconfont">√</i></span>查看评价</a>
                </li>
                <li>
                    <a href="//list.mi.com/0-0-0-0-0-0-1-0-1" data-stat-id="e8569f529bceae29" onclick="_msq.push(['trackEvent', '1804ccef8d6df799-e8569f529bceae29', '//list.mi.com/0-0-0-0-0-0-1-0-1', 'pcpid', '']);"><span class="checkbox"><i class="iconfont">√</i></span>仅显示特惠商品</a>
                </li>
                <li>
                    <a href="//list.mi.com/0-0-0-0-0-1-0-0-1" data-stat-id="37129a7f67455398" onclick="_msq.push(['trackEvent', '1804ccef8d6df799-37129a7f67455398', '//list.mi.com/0-0-0-0-0-1-0-0-1', 'pcpid', '']);"><span class="checkbox"><i class="iconfont">√</i></span>仅显示有货商品</a>
                </li>
            </ul>
        </div>-->
        <div class="goods-list-box">

            <if condition="isset($goodsData)">
            <div class="goods-list clearfix">
                <foreach name="goodsData" key="k" item="v">
                <div class="goods-item">
                    <div class="figure figure-img">
                        <a href="{:u('home/content/index',['gid'=>$v['gid']])}" data-stat-id="ea4163af8d487aa0" ><img src="__ROOT__/{$v['glist']}" width="200" height="200" alt="{$v['gname']}"></a>
                    </div>
                    <p class="desc"></p>
                    <h2 class="title"><a href="{:u('home/content/index',['gid'=>$v['gid']])}">{$v['gname']}</a></h2>
                    <p class="price">{$v['xmprice']}元 起</p>
                    <div class="thumbs">
                        <ul class="thumb-list clearfix">
                            <li data-config="{&quot;cid&quot;:&quot;1164400010&quot;,&quot;gid&quot;:&quot;0&quot;,&quot;price&quot;:&quot;3499\u5143 \u8d77&quot;,&quot;discount&quot;:&quot;0&quot;,&quot;new&quot;:0,&quot;is-cos&quot;:1,&quot;package&quot;:1,&quot;hasgift&quot;:0,&quot;postfree&quot;:0,&quot;postfreenum&quot;:1,&quot;cfrom&quot;:&quot;list&quot;}"><img src="__ROOT__/{$v['glist']}" width="34" height="34" alt="{$v['gname']}"></li>
                        </ul>
                    </div>
                </div>
                </foreach>
            </div>
                <else />
            <div class="xm-pagenavi">
                暂时没有商品
            </div>
            </if>
        </div>
    </div>
    <div id="J_historyWrap" class="xm-recommend-container"></div>
</div>